package com.coding.serivce;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

/**
 * -- Created by IntelliJ IDEA.
 * -- REMARK:
 * -- User: tanwei
 * -- Date: 2020/7/5
 * -- Time: 12:40 下午
 * --
 */
//定时任务
@Service
public class ScheduledService {

    @Scheduled(cron = "0 * * * * 0-7")
    public void hello() {
        System.out.println("hello....");
    }
}
